!function(){var e=[];document.getElementsByClassName||(document.getElementsByClassName=function(e){var t,n,o,a=document,i=[];if(a.querySelectorAll)return a.querySelectorAll("."+e);if(a.evaluate)for(n=".//*[contains(concat(' ', @class, ' '), ' "+e+" ')]",o=(t=a.evaluate(n,a,null,0,null)).iterateNext();o;o=t.iterateNext())i.push(o);else for(t=a.getElementsByTagName("*"),n=new RegExp("(^|\\s)"+e+"(\\s|$)"),o=0;o0?"; expires="+n.expires.toUTCString():"",n.path?"; path="+n.path:"",n.domain?"; domain="+n.domain:"","https:"===window.location.protocol?"; SameSite=None; Secure":"; SameSite=Lax"].join(""),document.cookie}function W(e){if(e){var t=document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return t?unescape(t[2]):null}return document.cookie}function A(){var e=W(w),t=W(v);e&&(l.se=e),t&&(l.tk=t);var n=null;if(l.se){if(!p){n=W(g);var o=W(b),a=document.referrer;I.href=a,n&&n.length?I.hostname!==m&&I.hostname.split(".").slice(1).join(".")!==f||(l.rf=n):document.referrer.length&&I.hostname===location.hostname||(l.se=(new Date).getTime()),o&&o.length||U(b,a,{expires:_})}}else l.se=(new Date).getTime();return p=l.se,U(w,p,{expires:_}),U(g,location.href,{expires:y}),p}function z(e,t){var n=t||window.location,o=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"),a=new RegExp("[\\?&]"+o+"=([^&#]*)").exec(n.search);return null===a?"":decodeURIComponent(a[1].replace(/\+/g," "))}function q(e,t,n){A(),l.ts=(new Date).getTime().toString();var o,a=t||window,i=n||(a.document?a.document:document),s=(a.pageXOffset||i.scrollLeft)-(i.clientLeft||0),r=(a.pageYOffset||i.scrollTop)-(i.clientTop||0),c=[];for(o in l.pt=r,l.pl=s,l.ts=Math.round((new Date).getTime()/1e3),l.loc=a.location.href,z("pas",a.location)&&(l.pas=z("pas",a.location)),h={},l)l.hasOwnProperty(o)&&(c.push(encodeURIComponent(o)+"="+encodeURIComponent(l[o])),h[o]=l[o]);for(o in e)e.hasOwnProperty(o)&&(c.push(encodeURIComponent(o)+"="+encodeURIComponent(e[o])),h[o]=e[o]);return c.join("&")}function j(){if(S())for(A();r.length>0;)H(r.shift())}function F(){j()}function V(e,t){window.documentIsReady?"function"==typeof e&&e.apply(window,t):c.push({f:e,a:t})}function $(e){return"function"==typeof e?function(){V(e,Array.prototype.slice.call(arguments))}:null}function Q(){var e=function(){if(!window.chatbotLoadWrapperBool){window.chatbotLoadWrapperBool=!0;var e=z("preview-bot"),t=q(e?{"preview-bot":e}:{});D(E+"/getChatbot",t)}};t(e),setTimeout(e,100)}function X(e,t){e.className=e.className.replace(new RegExp(" *\\b"+t+"\\b","g"),"")}function Y(e,t){e.className+=" "+t}function G(){var e=!!window.screen&&window.screen.width<600;if(e=e||window.innerWidth<600,window.ssChatbot.isMobile!==e){window.ssChatbot.isMobile=e;var t=document.getElementById("ssChatbot");if(!t)return;t.contentWindow.postMessage({isMobile:e},"*"),e?Y(t,"_ss_cb_isMobile"):X(t,"_ss_cb_isMobile")}}function J(e){if("sendMeTheConfig"===e.data){var t=document.getElementById("ssChatbot");if(t){var n=W(v).replace("|","_");t.contentWindow.postMessage({chatbot:window.ssChatbot,trackingId:n,pagePath:window.location.pathname,leadFields:window.ssChatbotLeadFields,hasChatbotBrandingService:window.ssChatbotBranding,offline:window.location.search.indexOf("preview-bot")>=0},"*"),G()}else console.log("respondToConfigRequest failed - no element found with id=ssChatbot.")}}function K(e){var t=document.getElementById("ssChatbot");t&&(t.style=window.ssChatbot.orientation?"right: 0;":"left: 0;","chatbotCollapsed"===e.data&&(Y(t,"_ss_cb_collapsed"),X(t,"_ss_cb_expanded"),X(t,"_ss_cb_welcomeExpanded")),"chatbotExpanded"===e.data&&(X(t,"_ss_cb_collapsed"),Y(t,"_ss_cb_expanded"),X(t,"_ss_cb_welcomeExpanded")),"chatbotWelcomeExpanded"===e.data&&(X(t,"_ss_cb_collapsed"),X(t,"_ss_cb_expanded"),Y(t,"_ss_cb_welcomeExpanded")))}function Z(e){"chatbot-notification"===e.data.name&&(e.data.start?(clearInterval(k),k=setInterval(function(){document.title=L===document.title?e.data.message:L},T)):(clearInterval(k),document.title=L))}function ee(){if("visible"===document.visibilityState){var e=document.getElementById("ssChatbot");if(!e)return;e.contentWindow.postMessage({name:"visibility-change",visible:!0},"*")}}function te(e){var t=0===window.location.search.indexOf("?")?window.location.search.slice(1):"",n=E+x+"?"+t;n+="&requestedLanguage="+function(){var e="en_US";if(navigator&&navigator.languages)for(var t={"de-DE":"de_DE",de:"de_DE","en-US":"en_US",en:"en_US","es-ES":"es_ES",es:"es_ES","it-IT":"it_IT",it:"it_IT","nl-NL":"nl_NL",nl:"nl_NL","pt-PT":"pt_PT",pt:"pt_PT"},n=0;n0;)"function"==typeof(e=c.shift()).f&&e.f.apply(window,e.a)},this.handleChatbotResponse=function(e){if(N.push(e),e&&e.bot)try{!function(e){if(window.ssChatbot||(window.ssChatbot=e.bot),e.lead){var t,n=[];for(t in e.lead)e.lead.hasOwnProperty(t)&&n.push({key:t,value:e.lead[t]});window.ssChatbotLeadFields=n}window.ssChatbotBranding=!!e.hasChatbotBrandingService;var o=function(e,t,n){"function"==typeof window.addEventListener?window.addEventListener(e,t,n):"function"==typeof window.attachEvent&&window.attachEvent(e,t,n)};o("message",J,!1),o("message",K,!1),o("resize",G,!1),o("message",Z,!1),o("visibilitychange",ee,!1)}(e),te(e.bot.displayName)}catch(e){d.push(["ERROR",e])}},this.handleResponse=function(t){if(N.push(t),t){var n;if("page"===t.type&&(B=t,t.isChatbotCapable&&V(Q,[])),t.hasOwnProperty("trackingID")){if(O=t.trackingID,l.tk||(l.tk=O),n=l.tk,U(v,n,{expires:7884e8}),n){var o,a=document.getElementsByTagName("iframe");for(o=0;o